KtorWriteCrudRepoClient

class KtorWriteCrudRepoClient<ObjectType, IdType, InputValue>(    baseUrl: String,     httpClient: <ERROR CLASS>,     val newObjectsFlow: Flow<ObjectType>,     val updatedObjectsFlow: Flow<ObjectType>,     val deletedObjectsIdsFlow: Flow<IdType>,     createSetup: suspend <ERROR CLASS>.(List<InputValue>) -> Unit,     updateSetup: suspend <ERROR CLASS>.(List<UpdatedValuePair<IdType, InputValue>>) -> Unit,     deleteByIdSetup: suspend <ERROR CLASS>.(List<IdType>) -> Unit,     createBodyGetter: suspend <ERROR CLASS>.() -> List<ObjectType>,     updateBodyGetter: suspend <ERROR CLASS>.() -> List<ObjectType>) : WriteCRUDRepo<ObjectType, IdType, InputValue>

Constructors

Link copied to clipboard
fun <ObjectType, IdType, InputValue> KtorWriteCrudRepoClient(    baseUrl: String,     httpClient: <ERROR CLASS>,     newObjectsFlow: Flow<ObjectType>,     updatedObjectsFlow: Flow<ObjectType>,     deletedObjectsIdsFlow: Flow<IdType>,     createSetup: suspend <ERROR CLASS>.(List<InputValue>) -> Unit,     updateSetup: suspend <ERROR CLASS>.(List<UpdatedValuePair<IdType, InputValue>>) -> Unit,     deleteByIdSetup: suspend <ERROR CLASS>.(List<IdType>) -> Unit,     createBodyGetter: suspend <ERROR CLASS>.() -> List<ObjectType>,     updateBodyGetter: suspend <ERROR CLASS>.() -> List<ObjectType>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun create(values: List<InputValue>): List<ObjectType>
Link copied to clipboard
open suspend override fun deleteById(ids: List<IdType>)
Link copied to clipboard
open suspend override fun update(values: List<UpdatedValuePair<IdType, InputValue>>): List<ObjectType>
open suspend override fun update(id: IdType, value: InputValue): ObjectType?

Properties

Link copied to clipboard
open override val deletedObjectsIdsFlow: Flow<IdType>
Link copied to clipboard
open override val newObjectsFlow: Flow<ObjectType>
Link copied to clipboard
open override val updatedObjectsFlow: Flow<ObjectType>